﻿using System;
using PTop.Code;

namespace PTop.Domain.Entity.Biz
{
    /// <summary>
    /// 工作应聘Entity
    /// </summary>	
    public class JobCandidateEntity : IEntity<JobCandidateEntity>, ICreationAudited, IModificationAudited
    {

        /// <summary>
        /// 编号
        /// </summary>
        public string F_Id { get; set; }
        /// <summary>
        /// F_JobId
        /// </summary>
        public string F_JobId { get; set; }
        /// <summary>
        /// F_JobTitle
        /// </summary>
        public string F_JobTitle { get; set; }
        /// <summary>
        /// F_Name
        /// </summary>
        public string F_Name { get; set; }
        /// <summary>
        /// F_Gender
        /// </summary>
        public string F_Gender { get; set; }
        /// <summary>
        /// F_Age
        /// </summary>
        public int F_Age { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string F_License { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string F_Education { get; set; }
        /// <summary>
        /// F_Phone
        /// </summary>
        public string F_Phone { get; set; }
        /// <summary>
        /// F_Address
        /// </summary>
        public string F_Address { get; set; }
        /// <summary>
        /// F_Salary
        /// </summary>
        public string F_Salary { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int F_State { get; set; }
        /// <summary>
        /// 创建者
        /// </summary>
        public string F_CreatorUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? F_CreatorTime { get; set; }
        /// <summary>
        /// 修改者
        /// </summary>
        public string F_LastModifyUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? F_LastModifyTime { get; set; }

        public static string GetStateName(object obj)
        {
            var g = (int)obj;
            if (g == 0) return "未处理";
            if (g == 1) return "已招聘";
            if (g == 2) return "未招聘";
            return "未知";
        }
    }
}